package com.k.designpattern.creational.factory.factory2;

public class Test {
    public static void main(String[] args) {
        /**
         * new IPhoneFactory() or new MiPhoneFactory()
         * 切换不同工厂 只需要 new 不同的工厂
         */
        AbstractPhoneFactory factory = new IPhoneFactory();
        Phone phone = factory.create();
        phone.call();
    }
}
